import Vue from "vue";
import VueAMap from "vue-amap";

import "normalize.css/normalize.css";

import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";

import "@/styles/index.scss";

import App from "./App";
import store from "./store";
import router from "./router";

import "vant/lib/index.css";
import "@/icons";
import "@/permission";

import {
  Field,
  Picker,
  Cell,
  CellGroup,
  Cascader,
  Checkbox,
  CheckboxGroup,
  Dialog,
  Notify,
  Collapse,
  CollapseItem,
  Skeleton,
  NavBar,
  Popup,
  DatetimePicker,
  Search 
} from "vant";
import { Button, Icon, Form, Toast, Col, Row, Calendar, Uploader } from "vant";
import {
  Grid,
  GridItem,
  Tab,
  Tabs,
  Overlay,
  SwipeCell,
  List,
  ImagePreview,
  Swipe,
  SwipeItem,
  Tag 
} from "vant";
import { Image as VanImage } from "vant";

Vue.use(Field);
Vue.use(Picker);
Vue.use(Cell);
Vue.use(CellGroup);
Vue.use(Cascader);
Vue.use(Checkbox);
Vue.use(CheckboxGroup);
Vue.use(Dialog);
Vue.use(Notify);
Vue.use(Collapse);
Vue.use(CollapseItem);
Vue.use(Skeleton);
Vue.use(NavBar);
Vue.use(Popup);
Vue.use(DatetimePicker);
Vue.use(Button);
Vue.use(Icon);
Vue.use(VanImage);
Vue.use(Grid);
Vue.use(GridItem);
Vue.use(Form);
Vue.use(Toast);
Vue.use(Tab);
Vue.use(Tabs);
Vue.use(Overlay);
Vue.use(Col);
Vue.use(Row);
Vue.use(Calendar);
Vue.use(Uploader);
Vue.use(SwipeCell);
Vue.use(List);
Vue.use(ImagePreview);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(Search);
Vue.use(Tag );
Vue.use(VueAMap);
Vue.use(ElementUI);

VueAMap.initAMapApiLoader({
  key: "32277af11fb42ec7cee22eca857f3649",
  plugin: ["AMap.Geolocation", "AMap.PlaceSearch"],
  v: "1.4.4",
});

Vue.config.productionTip = false;

new Vue({
  el: "#app",
  router,
  store,
  render: (h) => h(App),
});
